package com.usefullc.english.vo;

import com.usefullc.common.domain.BaseDomain;
import com.usefullc.english.domain.Category;
import com.usefullc.system.service.component.extend.ApiField;
import com.usefullc.system.service.component.extend.DictField;
import com.usefullc.system.service.component.extend.EnumField;
import com.usefullc.system.service.component.extend.UsefulField;
import com.usefullc.system.service.component.extend.ApiField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 类目返回实体
 *
 * @author: 星空
 * @date: 2022-08-07
 */
@Data
public class CategoryVo extends BaseDomain {

//useful_auto_generate_section_start


    @ApiModelProperty(notes = "编码")
    private String code;


    @ApiModelProperty(notes = "名称")
    private String name;


    @ApiModelProperty(notes = "ID")
    private Long id;


    @ApiModelProperty(notes = "图标")
    private String icon;


    @ApiModelProperty(notes = "路径")
    private String url;


    @ApiModelProperty(notes = "删除状态")
    private Boolean delState;

    @UsefulField(format = "yyyy-MM-dd")
    @ApiModelProperty(notes = "创建时间")
    private Date gmtCreate;

    @UsefulField(format = "yyyy-MM-dd")
    @ApiModelProperty(notes = "修改时间")
    private Date gmtModified;


    @ApiModelProperty(notes = "排序")
    private Integer orderNo;


    @ApiModelProperty(notes = "描述")
    private String description;


    @ApiModelProperty(notes = "横幅图")
    private String bannerImgUrl;

    @ApiField(url = "/english/category/listTree", id = "key", value = "title")
    @ApiModelProperty(notes = "父节点")
    private Long parentId;

    //useful_auto_generate_section_end

    @ApiModelProperty(notes = "子集列表")
    private List<CategoryVo> children;

    @ApiModelProperty(notes = "url前缀")
    private String urlPrefix;

}
